import Vue from 'vue'
import Vuex from 'vuex'
import home from './modules/home'

Vue.use(Vuex); //vue的插件机制

const debug = true


const store = new Vuex.Store({
	//添加模块
	modules: {
		home
	},
	strict: debug,
	// 开启调试功能插件
	plugins: debug ? [Vuex.createLogger()] : []
})


export default store